package com.CloudInkLover.mianshiya.esdao;

import com.CloudInkLover.mianshiya.model.dto.question.QuestionEsDTO;
import com.CloudInkLover.mianshiya.model.dto.question.QuestionQueryRequest;
import com.CloudInkLover.mianshiya.model.entity.Question;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * 题目 ES 操作
 */
public interface QuestionEsDao 
    extends ElasticsearchRepository<QuestionEsDTO, Long> {

    /**
     * 根据用户 id 查询
     * @param userId
     * @return
     */
    List<QuestionEsDTO> findByUserId(Long userId);




}
